<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BannerModel extends Model
{
    //轮播
    protected $table='banner';

    /**
     * 获取器 获取头像
     */
    public function getBannerImgAttribute($value){
        return getDomain() . '/upload/' . $value;
    }

}
